Skip to content

[TEST] - Test unit - Fix failing UI unit test 4.15 branch#5219

Merged
davidjumani merged 9 commits intoapache:4.15from
utchoang:feature/test-unit-4.15
Jul 30, 2021
Merged

[TEST] - Test unit - Fix failing UI unit test 4.15 branch#5219
davidjumani merged 9 commits intoapache:4.15from
utchoang:feature/test-unit-4.15

Conversation

@utchoang
Copy link

@utchoang utchoang commented Jul 20, 2021

Description

Related #5212

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

@utchoang utchoang changed the title [TEST] Test unit - Fix failing UI unit test 4.15 branch [WIP] - Test unit - Fix failing UI unit test 4.15 branch Jul 20, 2021
@utchoang utchoang changed the title [WIP] - Test unit - Fix failing UI unit test 4.15 branch [TEST] - Test unit - Fix failing UI unit test 4.15 branch Jul 20, 2021
@apache apache deleted a comment from blueorangutan Jul 20, 2021
@apache apache deleted a comment from blueorangutan Jul 20, 2021
@utchoang
Copy link
Author

@blueorangutan ui

@apache apache deleted a comment from blueorangutan Jul 26, 2021
@apache apache deleted a comment from blueorangutan Jul 26, 2021
@blueorangutan
Copy link

@utchoang a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@blueorangutan
Copy link

UI build: ✔️
Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/5219 (SL-JID-421)

@yadvr yadvr added this to the 4.15.2.0 milestone Jul 27, 2021
@yadvr
Copy link
Member

yadvr commented Jul 27, 2021

I've checked the code, but tests are passing per Travis:

> cloudstack-ui@1.0.0 lint /home/travis/build/apache/cloudstack/ui
> vue-cli-service lint
 DONE  No lint errors found!
> cloudstack-ui@1.0.0 test:unit /home/travis/build/apache/cloudstack/ui
> vue-cli-service test:unit
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
[vue-jest]: Less are not currently compiled by vue-jest
 PASS  tests/unit/views/AutogenView.spec.js (21.07s)
 PASS  tests/unit/views/compute/MigrateWizard.spec.js
 PASS  tests/unit/components/widgets/Status.spec.js
 PASS  tests/unit/components/view/ActionButton.spec.js
=============================== Coverage summary ===============================
Statements   : 4.92% ( 759/15419 )
Branches     : 6% ( 470/7834 )
Functions    : 2.69% ( 136/5063 )
Lines        : 4.91% ( 753/15328 )
================================================================================
Test Suites: 4 passed, 4 total
Tests:       134 passed, 134 total
Snapshots:   0 total
Time:        77.768s
Ran all test suites.

Copy link
Member

@weizhouapache weizhouapache left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested with latest 4.15 branch ok.

prior:

~/git/cloudstack/ui ((HEAD detached from apache/4.15))# npm run test:unit

=============================== Coverage summary ===============================
Statements   : 4.7% ( 725/15424 )
Branches     : 5.76% ( 451/7833 )
Functions    : 2.59% ( 131/5067 )
Lines        : 4.7% ( 721/15333 )
================================================================================
Test Suites: 3 failed, 1 passed, 4 total
Tests:       29 failed, 105 passed, 134 total
Snapshots:   0 total
Time:        33.95s
Ran all test suites.

with this pr

=============================== Coverage summary ===============================
Statements   : 4.92% ( 759/15425 )
Branches     : 6.03% ( 472/7833 )
Functions    : 2.68% ( 136/5067 )
Lines        : 4.91% ( 753/15334 )
================================================================================

Test Suites: 1 failed, 3 passed, 4 total
Tests:       2 failed, 132 passed, 134 total
Snapshots:   0 total
Time:        34.977s
Ran all test suites.

@nvazquez nvazquez closed this Jul 27, 2021
@nvazquez nvazquez reopened this Jul 27, 2021
Hoang Nguyen and others added 2 commits July 29, 2021 07:28
Co-authored-by: davidjumani <dj.davidjumani1994@gmail.com>
Co-authored-by: davidjumani <dj.davidjumani1994@gmail.com>
@davidjumani
Copy link
Contributor

@blueorangutan ui

@blueorangutan
Copy link

@davidjumani a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@blueorangutan
Copy link

UI build: ✖️
(SL-JID-443)

@utchoang
Copy link
Author

@blueorangutan ui

@blueorangutan
Copy link

@utchoang a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@blueorangutan
Copy link

UI build: ✔️
Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/5219 (SL-JID-444)

@davidjumani
Copy link
Contributor

@blueorangutan ui

@blueorangutan
Copy link

@davidjumani a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@blueorangutan
Copy link

UI build: ✔️
Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/5219 (SL-JID-449)

@davidjumani
Copy link
Contributor

 PASS  tests/unit/components/view/ActionButton.spec.js
 PASS  tests/unit/components/widgets/Status.spec.js
 PASS  tests/unit/views/compute/MigrateWizard.spec.js
 PASS  tests/unit/views/AutogenView.spec.js (9.027s)

=============================== Coverage summary ===============================
Statements   : 4.91% ( 760/15477 )
Branches     : 5.99% ( 470/7850 )
Functions    : 2.68% ( 136/5083 )
Lines        : 4.9% ( 754/15386 )
================================================================================

Test Suites: 4 passed, 4 total
Tests:       134 passed, 134 total
Snapshots:   0 total
Time:        17.228s
Ran all test suites.

@davidjumani davidjumani merged commit 1ccd61c into apache:4.15 Jul 30, 2021
@davidjumani
Copy link
Contributor

@utchoang Can you merge this into main and fix failures on main? Thanks

@yadvr
Copy link
Member

yadvr commented Jul 30, 2021

@utchoang I've forward merged the conflicts on main, any new changes/fixes should be done in the other PR - #5220

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants